//
//  ItemCollectionViewCell.m
//  Shengzhuli
//
//  Created by FXGuo on 2017/5/11.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "ItemCollectionViewCell.h"
#import <UIImageView+WebCache.h>

@interface ItemCollectionViewCell()

@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *nameLab;


@end

@implementation ItemCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)setModel:(HomeGoodsTypeModel *)model
{
    _model = model;
    [self.iconView sd_setImageWithURL:[NSURL URLWithString:model.productTypeImage] placeholderImage:GetImage(@"default_goods_image")];
    self.nameLab.text = model.productTypeName;
}

@end
